
.macro cbm.or        rd, rs1, rs2, es
.insn r CUSTOM_0, 1, \es*32, \rd, \rs1, \rs2
.endm

.macro cbm.srli       rd, rs1, imm, es
.insn i CUSTOM_1, 4, \rd, \rs1, (\imm & 0x3ff)+1024*(\es & 1)-2048*((\es >> 1) & 1)
.endm

.org 0x80
nop
nop
cbm.or    x31, x31, x0, 3
cbm.srli  x31, x31, 16, 3
nop
nop
and    x20, x5, x6
nop
xor    x20, x20, x31
nop
and    x21, x5, x13
nop
xor    x21, x21, x31
nop
and    x22, x12, x6
nop
xor    x21, x21, x22
nop
and    x23, x12, x13
nop
xor    x21, x21, x23
nop
nop
nop
